<?php
session_start();
require_once("../lib/standard.php");
require_once("../lib/selida.php");
require_once("../fantasmatakia/pektis.php");

$globals->set_pektis();

Selida::head();
Selida::load_css("lib/forma");
Selida::load_css("account/signup");
Selida::load_javascript("account/signup");
Selida::body();
Selida::toolbar();
Selida::anixeMain();
?>
<form class="forma signupForma" onsubmit="return account.<?php
		print ($globals->is_pektis() ? "enimerosi" : "egrafi");
		?>(this);">
<table>
<tr>
	<td class="prompt">
		Όνομα login
	</td>
	<td>
		<input type="text" name="login" class="pedio" maxlength="16" 
			onkeydown="globals.misc.resetInputColor(this);" <?php
			if ($globals->is_pektis()) {
				?>
				disabled="disabled" value="<?php
					print $globals->pektis->login;
				?>"<?php
			}
			?> />
	</td>
</tr>
<tr>
	<td class="prompt">email</td>
	<td>
		<input type="text" name="email" class="pedio" maxlength="256"
			onkeydown="globals.misc.resetInputColor(this);" <?php
				if ($globals->is_pektis()) {
					?>
					value="<?php print $globals->pektis->email; ?>"
					<?php
				}
				?> />
	</td>
</tr>
<tr>
	<td class="prompt">Ονοματεπώνυμο</td>
	<td>
		<input type="text" id="input_onoma_signup" 
			name="onoma" class="pedio" size="40" maxlength="40" <?php
				if ($globals->is_pektis()) {
					?>
					value="<?php print $globals->pektis->onoma; ?>"
					<?php
				}
				?> />
	</td>
</tr>
<?php
if ($globals->is_pektis()) {
	?>
	<tr>
		<td class="prompt">Τρέχων κωδικός</td>
		<td>
			<input type="password" id="input_kodikos_signup" 
				name="kodikos" class="pedio" maxlength="40" />
		</td>
	</tr>
	<?php
}
?>
<tr>
	<td class="prompt">Κωδικός</td>
	<td>
		<input type="password" name="kodikos1" class="pedio" maxlength="40" 
			onkeydown="globals.misc.resetInputColor(this);" />
	</td>
</tr>
<tr>
	<td class="prompt">Επανάληψη κωδικού</td>
	<td>
		<input type="password" name="kodikos2" class="pedio" maxlength="40" 
			onkeydown="globals.misc.resetInputColor(this);" />
	</td>
</tr>
<tr>
	<td colspan="2">
		<input type="submit" id="eggrafi" name="eggrafi"
			class="koumpi" value="<?php
				print ($globals->is_pektis() ? "Ενημέρωση" : "Εγγραφή");
			?>" />
		<input type="reset" id="reset_button_signup" 
			name="reset_button_signup" class="koumpi" value="Reset" />
		<input type="button" id="cancel_button_signup" 
			name="cancel_button_signup" class="koumpi" value="Άκυρο" />
	</td>
</tr>
<tr>
	<td colspan="2">
		<div id="fyi" class="fyi">&nbsp;</div>
	</td>
</tr>
</table>
</form>
<?php
Selida::kliseMain();
Selida::footer();
?>
